package com.beamfield.dao.sys;

import com.beamfield.modelVo.RoleModelTreeVo;
import com.beamfield.model.RoleModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface RoleModelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoleModel record);

    int insertSelective(RoleModel record);

    RoleModel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoleModel record);

    int updateByPrimaryKey(RoleModel record);

    int selectByRoleIdAndModelId(@Param("roleId") String roleId, @Param("modelId") String modelId);

    int deleteByRoleIdAndModelId(@Param("roleId") String roleId,@Param("modelId") String modelId);

    List<RoleModelTreeVo> selectByRoleId(@Param("roleId") Long roleId, @Param("platform") String platform);
}
